-- GENERATED SPELL FOR [Prowler] --


function spell0_118(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_118', 546, 1)
end

function spell1_118(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_118', 0, 1)
end

function spell2_118(pUnit, Event) --@Furious Howl,Self--
pUnit:FullCastSpellOnTarget(24604,pUnit)
pUnit:RegisterEvent('Sorts_118', 20000, 1)
end

function spell3_118(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_118', 0, 1)
end

function Sorts_118(pUnit, Event)
local choix_sorts_118 = math.random(0, 3)
if choix_sorts_118 == 0 then
pUnit:RegisterEvent('spell0_118', 1, 1)
end
if choix_sorts_118 == 1 then
pUnit:RegisterEvent('spell1_118', 1, 1)
end
if choix_sorts_118 == 2 then
pUnit:RegisterEvent('spell2_118', 1, 1)
end
if choix_sorts_118 == 3 then
pUnit:RegisterEvent('spell3_118', 1, 1)
end
end

function mob118_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_118', math.random(1500, 3000), 1)
end

function mob118_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob118_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob118_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(118, 1, 'mob118_Action')
RegisterUnitEvent(118, 2, 'mob118_Leave')
RegisterUnitEvent(118, 3, 'mob118_Kill')
RegisterUnitEvent(118, 4, 'mob118_Die')
